package com.itboy.mall.pms.attrattrgroup.bo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.*;


/**
 * 属性&属性分组关联编辑对象 mall_attr_attrgroup
 *
 * @author itboy
 * @date 2021-07-24
 */
@Data
@ApiModel("属性&属性分组关联编辑对象")
public class MallAttrAttrGroupEditBo {


    /** id */
    @ApiModelProperty("id")
    @NotNull(message = "id不能为空")
	@JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    /** 属性id */
    @ApiModelProperty("属性id")
    @NotNull(message = "属性id不能为空")
	@JsonSerialize(using = ToStringSerializer.class)
    private Long attrId;

    /** 属性分组id */
    @ApiModelProperty("属性分组id")
    @NotNull(message = "属性分组id不能为空")
	@JsonSerialize(using = ToStringSerializer.class)
    private Long attrGroupId;

    /** 属性组内排序 */
    @ApiModelProperty("属性组内排序")
    private Long attrSort;
}
